<script setup>
import { onMounted } from "vue";
import { useUserStore } from "@/stores/user";

const userStore = useUserStore();

onMounted(async () => {
  try {
    await userStore.fetchUserInfo();
  } catch (e) {
    userStore.resetUserState();
  }
});
</script>

<template>
  <router-view/>
</template>
